import GlobalDialog from './global';
import DeleteTip from './deleteTip';
import ImportExcel from './import/excel';
import PrintPreview from './preview/print';
import ChoosePrinter from './printer';
import QrCodeDialog from "./qrcode";
import ExportFormDialog from "./export/form";
import FormDialog from "./form";

export default {
	install (Vue, store, router) {
		let globalVue = Vue.prototype || Vue.config.globalProperties;
		globalVue['$dialog'] = GlobalDialog(store, router);
		globalVue['$DeleteTip'] = DeleteTip(store, router);
		globalVue['$ImportExcel'] = ImportExcel(store, router);
		globalVue['$PrintPreview'] = PrintPreview(store, router);
		globalVue['$ChoosePrinter'] = ChoosePrinter(store, router);
        globalVue['$QRCode'] = QrCodeDialog(store, router);
		globalVue['$ExportForm'] = ExportFormDialog(store, router);;
		globalVue['$FormDialog'] = FormDialog(store, router);
	},
};

